$(document).ready(function() {
	var lis = $('div.ui-widget-header > ul > li');
	$.each(lis, function(index, li) {
		if (li.firstElementChild == window.location.href) {
			$(this).addClass('ui-state-active');
		}
	});
});